package com.cwd.arm.application.service.read.facade;

import com.cwd.arm.application.dto.ConfirmIncomeDto;
import com.cwd.arm.infrastructure.query.ConfirmIncomeDaoQuery;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
* Description:确认收入
* Created on 2021年11月16日
* @author  yan
*/
@Service
public interface ConfirmIncomeReadService {

    ConfirmIncomeDto selectById(Long id);

    List<ConfirmIncomeDto> selectByProjectId(Long projectId);

    List<ConfirmIncomeDto> selectByQuery(ConfirmIncomeDaoQuery daoQuery);


    /**
     * 进度
     * @return
     */
    BigDecimal getRate(Long projectId, BigDecimal rate, Long confirmIncomeId, String date) throws Exception;

    /**
     * 金额
     * @param rate
     * @return
     */
    BigDecimal getAmount(Long projectId,BigDecimal rate,Long confirmIncomeId,String date) throws Exception;
}
